package com.apo1o.cmscore.dao;

import com.apo1o.cmscore.bean.Category;
import com.apo1o.cmscore.bean.ext.CategoryExtend;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Apo1o
 * @since 2023-11-15
 */
public interface CategoryDao extends BaseMapper<Category> {
        //查询栏目表中最大的order_num 值
    Integer getMaxOrderNum();
    //查询所有一级栏目（含二级栏目s）
    List<CategoryExtend> queryAllWithCates();
}
